from django.contrib import admin
from django.urls import path, include
from kblog import views
from django.contrib.staticfiles.views import serve
from django.views.generic.base import RedirectView

urlpatterns = [
    path('admin/', admin.site.urls),
    # #首页
    # path('', views.index,name='index'),
    # #文章详情页
    # path('',views.article_detail,name='article_detail')
    # path('favicon.ico', serve, {'path': 'static/img/favicon.ico'}),
    # path('favicon.ico', RedirectView.as_view(url='static/img/favicon.ico')),
    path('', include('kblog.urls')),
    path('mdeditor/', include('mdeditor.urls')),
]
